package net;

import java.io.Serializable;
import java.security.PublicKey;

public class TransactionKey implements Serializable{

	private static final long serialVersionUID = 1L;
	private PublicKey key;;
	private String username;
	
	public TransactionKey(PublicKey pbk, String username){
		key = pbk;
		this.username=username;
	}

	public PublicKey getKey() {
		return key;
	}

	public void setKey(PublicKey key) {
		this.key = key;
	}
	
	public boolean isServerKey(){
		return username.equals("");
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
}
